package com.wgchao.authmanager.infrastructure.jpa.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * @ClassName: RoleAuthoInfo
 * @author: wgchao
 * @createTime: 2020/5/9 4:58 PM
 * @Description: TODO
 */
@Entity
@Table(name = "am_assign_role_autho", uniqueConstraints =
        {@UniqueConstraint(name = "roleauthoIdentify", columnNames = {"agencyCode", "roleName", "projectIdentify", "menuIdentify"})})
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoleAuthoInfo {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String agencyCode;

    private String roleName;

    private String projectIdentify;

    private String menuIdentify;

    private boolean authorize;

    @Column(length = 20)
    private String createUser;

    private Date createTime;
}
